package com.kk.miaosha.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.kk.miaosha.Vo.RoleVo;
import com.kk.miaosha.entity.Role;
import com.kk.miaosha.entity.RoleMenu;
import com.kk.miaosha.entity.UserRole;
import com.kk.miaosha.exception.R;
import com.kk.miaosha.mapper.RoleMapper;
import com.kk.miaosha.mapper.RoleMenuMapper;
import com.kk.miaosha.mapper.UserMapper;
import com.kk.miaosha.mapper.UserRoleMapper;
import com.kk.miaosha.service.RoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author kk
 * @since 2020-10-21
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {
    @Resource
    private UserRoleMapper userRoleMapper;
    @Resource
    private RoleMapper roleMapper;

    @Override
    public List<RoleVo> getRoles() {
        return baseMapper.getRoles();
    }
}
